package com.ruoyi.mng.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 hz_order
 * 
 * @author chenqiang
 * @date 2023-04-29
 */
public class HzOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 主商户ID */
    @Excel(name = "主商户ID")
    private String merchantId;

    /** 商户订单号 */
    @Excel(name = "商户订单号")
    private String merTradeNo;

    /** 渠道订单号 */
    @Excel(name = "渠道订单号")
    private String chaTradeNo;

    /** 渠道ID */
    @Excel(name = "渠道ID")
    private Long channelId;

    /** 业务编码 */
    @Excel(name = "业务编码")
    private String tranType;

    /** 业务名称 */
    @Excel(name = "业务名称")
    private String tranName;

    /** 交易金额，分 */
    @Excel(name = "交易金额，分")
    private Long amt;

    /** 商户异步通知地址 */
    private String notifyUrl;

    /** 商户同步通知地址 */
    private String returnUrl;

    /** 渠道收取费用，分 */
    @Excel(name = "渠道收取费用，分")
    private BigDecimal chaFee;

    /** 收取商户费用，分 */
    @Excel(name = "收取商户费用，分")
    private BigDecimal merFee;

    /** 平台赚取费用，分 */
    @Excel(name = "平台赚取费用，分")
    private BigDecimal plaFee;

    /** 商户返回码 */
    @Excel(name = "商户返回码")
    private String respCode;

    /** 商户返回码说明 */
    private String respDesc;

    /** 渠道返回码 */
    private String chaRespCode;

    /** 渠道返回码说明 */
    private String chaRespDesc;

    /** 银行编码 */
    private String bankCode;

    /** 银行名称 */
    private String bankName;

    /** 支行名称 */
    private String bankBranchName;

    /** 联行号 */
    private String unionNo;

    /** 卡号 */
    private String pan;

    /** 身份证号 */
    private String cardId;

    /** 户名 */
    private String cardName;

    /** 手机号 */
    private String telphone;

    /** 扩展信息 */
    private String msgExt;

    /** 是否已经和上游对账：1--是 2--否 */
    private Long isCheck;

    /** 对账日期 */
    private Date checkTime;

    /** 对账结果，出现长短款时，需此字段说明情况 */
    private String checkReslut;

    /** 批次订单号，同一批次改值相同 */
    private String batchOrderNo;

    /** 是否已经成功通知 1--是 2--否 */
    private Long doNotice;

    /** 最后通知时间 */
    private Date noticeTime;

    /** 已经通知次数 */
    private Long noticeCount;

    /** 如果本条记录是退款订单，该字段用来记录原交易商户订单号 */
    private String refundMerReqNo;

    /** 渠道自身订单号；记录该交易渠道自身的订单号 */
    private String chaRspTradeNo;

    /** 备注1 */
    private String remark1;

    /** 备注2 */
    private String remark2;

    /** 备注3 */
    private String remark3;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String extend_merchantName;
    private String extend_busiName;
    private String extend_channelName;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setMerTradeNo(String merTradeNo) 
    {
        this.merTradeNo = merTradeNo;
    }

    public String getMerTradeNo() 
    {
        return merTradeNo;
    }
    public void setChaTradeNo(String chaTradeNo) 
    {
        this.chaTradeNo = chaTradeNo;
    }

    public String getChaTradeNo() 
    {
        return chaTradeNo;
    }
    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setTranType(String tranType) 
    {
        this.tranType = tranType;
    }

    public String getTranType() 
    {
        return tranType;
    }
    public void setTranName(String tranName) 
    {
        this.tranName = tranName;
    }

    public String getTranName() 
    {
        return tranName;
    }
    public void setAmt(Long amt) 
    {
        this.amt = amt;
    }

    public Long getAmt() 
    {
        return amt;
    }
    public void setNotifyUrl(String notifyUrl) 
    {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() 
    {
        return notifyUrl;
    }
    public void setReturnUrl(String returnUrl) 
    {
        this.returnUrl = returnUrl;
    }

    public String getReturnUrl() 
    {
        return returnUrl;
    }
    public void setChaFee(BigDecimal chaFee) 
    {
        this.chaFee = chaFee;
    }

    public BigDecimal getChaFee() 
    {
        return chaFee;
    }
    public void setMerFee(BigDecimal merFee) 
    {
        this.merFee = merFee;
    }

    public BigDecimal getMerFee() 
    {
        return merFee;
    }
    public void setPlaFee(BigDecimal plaFee) 
    {
        this.plaFee = plaFee;
    }

    public BigDecimal getPlaFee() 
    {
        return plaFee;
    }
    public void setRespCode(String respCode) 
    {
        this.respCode = respCode;
    }

    public String getRespCode() 
    {
        return respCode;
    }
    public void setRespDesc(String respDesc) 
    {
        this.respDesc = respDesc;
    }

    public String getRespDesc() 
    {
        return respDesc;
    }
    public void setChaRespCode(String chaRespCode) 
    {
        this.chaRespCode = chaRespCode;
    }

    public String getChaRespCode() 
    {
        return chaRespCode;
    }
    public void setChaRespDesc(String chaRespDesc) 
    {
        this.chaRespDesc = chaRespDesc;
    }

    public String getChaRespDesc() 
    {
        return chaRespDesc;
    }
    public void setBankCode(String bankCode) 
    {
        this.bankCode = bankCode;
    }

    public String getBankCode() 
    {
        return bankCode;
    }
    public void setBankName(String bankName) 
    {
        this.bankName = bankName;
    }

    public String getBankName() 
    {
        return bankName;
    }
    public void setBankBranchName(String bankBranchName) 
    {
        this.bankBranchName = bankBranchName;
    }

    public String getBankBranchName() 
    {
        return bankBranchName;
    }
    public void setUnionNo(String unionNo) 
    {
        this.unionNo = unionNo;
    }

    public String getUnionNo() 
    {
        return unionNo;
    }
    public void setPan(String pan) 
    {
        this.pan = pan;
    }

    public String getPan() 
    {
        return pan;
    }
    public void setCardId(String cardId) 
    {
        this.cardId = cardId;
    }

    public String getCardId() 
    {
        return cardId;
    }
    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }
    public void setTelphone(String telphone) 
    {
        this.telphone = telphone;
    }

    public String getTelphone() 
    {
        return telphone;
    }
    public void setMsgExt(String msgExt) 
    {
        this.msgExt = msgExt;
    }

    public String getMsgExt() 
    {
        return msgExt;
    }
    public void setIsCheck(Long isCheck) 
    {
        this.isCheck = isCheck;
    }

    public Long getIsCheck() 
    {
        return isCheck;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setCheckReslut(String checkReslut) 
    {
        this.checkReslut = checkReslut;
    }

    public String getCheckReslut() 
    {
        return checkReslut;
    }
    public void setBatchOrderNo(String batchOrderNo) 
    {
        this.batchOrderNo = batchOrderNo;
    }

    public String getBatchOrderNo() 
    {
        return batchOrderNo;
    }
    public void setDoNotice(Long doNotice) 
    {
        this.doNotice = doNotice;
    }

    public Long getDoNotice() 
    {
        return doNotice;
    }
    public void setNoticeTime(Date noticeTime) 
    {
        this.noticeTime = noticeTime;
    }

    public Date getNoticeTime() 
    {
        return noticeTime;
    }
    public void setNoticeCount(Long noticeCount) 
    {
        this.noticeCount = noticeCount;
    }

    public Long getNoticeCount() 
    {
        return noticeCount;
    }
    public void setRefundMerReqNo(String refundMerReqNo) 
    {
        this.refundMerReqNo = refundMerReqNo;
    }

    public String getRefundMerReqNo() 
    {
        return refundMerReqNo;
    }
    public void setChaRspTradeNo(String chaRspTradeNo) 
    {
        this.chaRspTradeNo = chaRspTradeNo;
    }

    public String getChaRspTradeNo() 
    {
        return chaRspTradeNo;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }
    public void setRemark3(String remark3) 
    {
        this.remark3 = remark3;
    }

    public String getRemark3() 
    {
        return remark3;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getExtend_merchantName() {
        return extend_merchantName;
    }

    public void setExtend_merchantName(String extend_merchantName) {
        this.extend_merchantName = extend_merchantName;
    }

    public String getExtend_busiName() {
        return extend_busiName;
    }

    public void setExtend_busiName(String extend_busiName) {
        this.extend_busiName = extend_busiName;
    }

    public String getExtend_channelName() {
        return extend_channelName;
    }

    public void setExtend_channelName(String extend_channelName) {
        this.extend_channelName = extend_channelName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("merchantId", getMerchantId())
            .append("merTradeNo", getMerTradeNo())
            .append("chaTradeNo", getChaTradeNo())
            .append("channelId", getChannelId())
            .append("tranType", getTranType())
            .append("tranName", getTranName())
            .append("amt", getAmt())
            .append("notifyUrl", getNotifyUrl())
            .append("returnUrl", getReturnUrl())
            .append("chaFee", getChaFee())
            .append("merFee", getMerFee())
            .append("plaFee", getPlaFee())
            .append("respCode", getRespCode())
            .append("respDesc", getRespDesc())
            .append("chaRespCode", getChaRespCode())
            .append("chaRespDesc", getChaRespDesc())
            .append("bankCode", getBankCode())
            .append("bankName", getBankName())
            .append("bankBranchName", getBankBranchName())
            .append("unionNo", getUnionNo())
            .append("pan", getPan())
            .append("cardId", getCardId())
            .append("cardName", getCardName())
            .append("telphone", getTelphone())
            .append("msgExt", getMsgExt())
            .append("isCheck", getIsCheck())
            .append("checkTime", getCheckTime())
            .append("checkReslut", getCheckReslut())
            .append("batchOrderNo", getBatchOrderNo())
            .append("doNotice", getDoNotice())
            .append("noticeTime", getNoticeTime())
            .append("noticeCount", getNoticeCount())
            .append("refundMerReqNo", getRefundMerReqNo())
            .append("chaRspTradeNo", getChaRspTradeNo())
            .append("remark1", getRemark1())
            .append("remark2", getRemark2())
            .append("remark3", getRemark3())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
